user_tool_account = {
    //生成开启界面
    init_start_view: function () {
        $("#user_grid").datagrid({
            url: getRootPath()+'/useronlinetime/useronlineget',
            showHeader:true,
            method: 'get',
            idField: "id",
            fitColumns: true,
            rownumbers: true,
            animate: true,
            singleSelect: true,
            fit: true,
            border: false,
            pagination: true,
            striped: true,
            pagePosition: "bottom",
            pageNumber: 1,
            pageSize: 15,
            pageList: [15, 30, 45, 60],
            columns: [[
                {title: "中文名", field: "username" },
                {title: "登录账号", field: "userid"},
                {title: "在线总时长(小时)", field: "usedtotaltime"}
            ]],

        });
    }
};
$(document).ready(function () {
    user_tool_account.init_start_view()

});